package com.rookie.tool.module.util.trigger.annotation;

import com.rookie.tool.module.util.trigger.component.EventCallback;
import com.rookie.tool.module.util.trigger.component.TriggerCondition;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 事件回调触发注解，由aop增强
 * @author rookie
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface TriggerEvent {

    Class<? extends TriggerCondition> condition();

    Class<? extends EventCallback> callback();
}
